<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title}</title>
    <link rel="shortcut icon" href="__STATIC__/src/common/img/cauliflower-small.png" type="image/x-icon" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/common.css" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/mobiscroll.min.css" />
</head>
<body>
{include file="common/header"}
<div class="container">
    <div class="col-md-8 col-md-offset-2">
        <div class="alert alert-warning {$alert}">
            未找到该考生！
        </div>
        <div class="panel panel-success {$result}">
            <div class="panel-heading">
                <h3 class="panel-title">查询结果</h3>
            </div>
            <table class="table table-hover table-striped table-bordered">
                <tr>
                    <th>考生考号</th>
                    <th>考生姓名</th>
                    <th>绑定IP</th>
                    <th>是否交卷</th>
                    <th>是否锁定IP</th>
                </tr>
                {volist name="examinees" id="examinee"}
                <tr>
                    <td>{$examinee.studentID}</td>
                    <td>{$examinee.studentName}</td>
                    <td>
                        {if condition="$examinee.studentBindIP == '0.0.0.0'"}未登录
                        {else /}{$examinee.studentBindIP}
                        {/if}
                    </td>
                    <td>
                        {if condition="$examinee.isSubmit == '0'"}未提交
                        {else /}已提交
                        {/if}
                    </td>
                    <td>
                        {if condition="$examinee.isLockingIP == '0'"}未绑定<a href='{php}echo url("bindIP?who=".$examinee['id']."&examName=".$examName){/php}'><span class="glyphicon glyphicon-plus-sign" style="margin-left: 20px; cursor: pointer;" title="绑定ip" data-toggle="tooltip"></span></a>
                        {else /}已绑定<a href='{php}echo url("untieIP?who=".$examinee['id']."&examName=".$examName){/php}'><span class="glyphicon glyphicon-minus-sign" style="margin-left: 20px; cursor: pointer;" title="解绑ip" data-toggle="tooltip"></span></a>
                        {/if}
                    </td>
                </tr>
                {/volist}
            </table>
        </div>
    </div>
</div>
<script src="__STATIC__/src/common/js/jquery-3.2.1.js"></script>
<script src="__STATIC__/src/common/js/bootstrap.js"></script>
<script src="__STATIC__/src/common/js/admin.js"></script>
<script src="__STATIC__/src/common/js/mobiscroll.min.js"></script>
<script>

</script>
</body>
</html>